package org.softcognito.webcontent.radiomaryja;

public class ItemDTOImpl implements ItemDTO {
	private String link;
	private String title;
	private String description;
	private String participants;
	private String pdate;
	private String image;
	private ItemDetailDTO itemDetail = null;

	public ItemDTOImpl(String link, String title, String description,
			String participants, String date, String image) {
		this.link = link;
		this.title = title;
		this.description = description;
		this.participants = participants;
		this.pdate = date;
		this.image = image;
	}

	@Override
	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	@Override
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String getPdate() {
		return pdate;
	}

	public void setPdate(String pdate) {
		this.pdate = pdate;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\n\nLink: ").append(this.link).append("\n");
		sb.append("Title: ").append(this.title).append("\n");
		sb.append("Part: ").append(this.participants).append("\n");
		sb.append("Descr: ").append(this.description).append("\n");
		sb.append("Image: ").append(this.image).append("\n");
		sb.append("Date: ").append(this.pdate).append("\n");
		if (this.itemDetail != null) {
			sb.append("ItemDetail: ").append(this.itemDetail);
		}
		return sb.toString();
	}

	@Override
	public String getImage() {
		return this.image;
	}

	@Override
	public ItemDetailDTO getItemDetail() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setItemDetail(ItemDetailDTO itemDetail) {
		// TODO Auto-generated method stub

	}

}
